package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.Category;

import java.util.List;
import java.util.Set;

/**
 * 商品分类管理逻辑层接口
 * Created by qezhhnjy on 2017/9/26-16:52.
 */
public interface ICategoryService {

    ServerResponse addCategory(String categoryName, Integer parentId);

    ServerResponse updateName(Integer categoryId, String categoryName);

    ServerResponse<List<Category>> getChildrenParallel(Integer categoryId);

    ServerResponse<Set<Category>> getAllChildren(Integer categoryId);

    //获取全部最底层子分类
    ServerResponse<Set<Category>> getChildrenLast(Integer categoryId);
}
